]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
window/menu: Remove move titlebar onscreen action
authorBilal Elmoussaoui <belmouss@redhat.com>
Tue, 21 May 2024 19:46:06 +0000 (21:46 +0200)
committerBilal Elmoussaoui <belmouss@redhat.com>
Fri, 24 May 2024 13:21:03 +0000 (15:21 +0200)
A feature that works for server side decorated windows only that
only adds slightly more convenience over the regular "move" action that
is still there.
Keeping it around would complicate some cleanups in upstream Mutter
so just drop it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3332>

js/ui/windowMenu.js

index 571a193580ede29c28b473a47f9f4b1555d40c19..c69c183d7c5d0dfb029ff11ae7e1b2576a432ea8 100644 (file)
@@ -97,12 +97,6 @@ export class WindowMenu extends PopupMenu.PopupMenu {
         if (!window.allows_resize())
             item.setSensitive(false);
 
-        if (!window.titlebar_is_onscreen() && type !== Meta.WindowType.DOCK && type !== Meta.WindowType.DESKTOP) {
-            this.addAction(_('Move Titlebar Onscreen'), () => {
-                window.shove_titlebar_onscreen();
-            });
-        }
-
         item = this.addAction(_('Always on Top'), () => {
             if (window.is_above())
                 window.unmake_above();